/*
 * @Description: 
 * @Version: 2.0
 * @Autor: lxc
 * @Date: 2020-12-18 17:19:33
 * @LastEditors: lxc
 * @LastEditTime: 2020-12-24 14:47:46
 */
const mongoose = require("mongoose");
const Schema = mongoose.Schema;

// Create Schema
const ClassifySchema = new Schema({
    name: {
        type: String,
        required: true
    },
    sort: {
        type: Number,
        required: true
    },
    date: {
        type: Date,
        default: Date.now
    }
})

module.exports = Classify = mongoose.model("classify", ClassifySchema);